package cn.njxzc.examples;

import java.util.Arrays;

public class Exam8_1 {
	public static void main(String[] args) {
		int[] a1 = new int[10];
		int[] a2 = new int[10];
		Arrays.fill(a1, 47);
		Arrays.fill(a2, 47);
		System.out.println("a1:");
		System.out.println(Arrays.toString(a1));
		System.out.println("a2:");
		System.out.println(Arrays.toString(a2));
		System.out.println(Arrays.equals(a1, a2));
		a2[3] = 11;
		a2[2] = 9;
		System.out.println(Arrays.equals(a1, a2));
		Arrays.sort(a2);
		System.out.println(Arrays.binarySearch(a2, 11));
	}

}